<div class="sidebar_detail">
	<div class="tab-header">
		<div class="title">
			<i class="fa fa-home"></i>上传视频
		</div>
		<div class="tool">
			<button type="button" class="btn btn-default" ng-click="uploadSupport.save()" ng-disabled="createVideoForm.$invalid">
				<i class="fa fa-outdent"></i>保存
			</button>
		</div>
	</div>
	<ul class="nav nav-tabs" role="tablist" style="clear: both">
		<li class="active"><a data-target="#videoBaseInfo" role="tab" data-toggle="tab">基本信息</a></li>
	</ul>
	<div class="tab-content">
		<div class="tab-pane active" id="productBaseInfo">
			<form id="createVideoForm" name="createVideoForm">
				<input name="isOk" type="hidden" class="form-control" ng-model="uploadSupport.bind.isOk" required>
			</form>
			<form id="uploadVideoForm" name="uploadVideoForm">
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-2 col-sm-2 control-label"> <span class="notNull">*</span>所属产品:</label>
							<div class="col-md-10 col-sm-10">
								<input id="productName" name="productName" type="text" class="form-control">
								<input name="productId" type="hidden" class="form-control" ng-model="uploadSupport.bind.productId" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="uploadVideoForm.productId.$valid"></span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-sm-2 control-label">介绍:</label>
							<div class="col-sm-10">
								<textarea id="videoIntroduce" name="videoIntroduce" class="form-control" rows="5" ng-model="uploadSupport.bind.videoIntroduce" ng-maxlength="300"></textarea>
								<span class="error_tips" ng-show="uploadVideoForm.videoIntroduce.$error.maxlength">最多不能超过300个字符！</span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-2 col-sm-2 control-label"> <span class="notNull">*</span>视频:</label>
							<div class="col-md-10 col-sm-10">
								<div id="video_upload"></div>
								<input name="videoOk" type="hidden" class="form-control" ng-model="uploadSupport.bind.videoOk" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="uploadVideoForm.videoOk.$valid"></span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group" style="text-align: right;">
							<button style="margin-right: 15px;" type="button" class="btn btn-default" ng-click="uploadSupport.add()" ng-disabled="uploadVideoForm.$invalid">添加
							</button>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group" style="text-align: right;">
							<ul style="text-align: center;">
								<li ng-repeat="item in uploadSupport.entity">
									<div class="row">
										<div class="col-md-4">{{ item.productName }}</div>
										<div class="col-md-4">{{ item.videos.key }}</div>
										<div class="col-md-4">{{ item.videoIntroduce }}</div>
									</div>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
